<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录</title>
<link rel="stylesheet" type="text/css" href="static/css/styles.css">
<!-- 测试 -->
<!-- JQuery JBox CSS -->
<link href="static/js/GreyBlue/jbox.css" rel="stylesheet">

<!-- Bootstrap Core CSS -->
<link href="static/css/bootstrap.min.css" rel="stylesheet">



<!-- Custom Fonts -->
<link href="static/css/font-awesome.min.css" rel="stylesheet"
	type="text/css">
<link rel="stylesheet" href="static/js/metisMenu/metisMenu.min.css">
</head>
<body>
	<div class="htmleaf-container">
		<div class="wrapper">
			<div class="container">
				<h1>Welcome To CRM是</h1>
				<c:if test="${not empty message}">
					<div class="alert ${message.state}">
						<button type="button" class="close" data-dismiss="alert"
							aria-label="Close">
							<span aria-hidden="true">&times;</span>
						</button>
						${message.message}
					</div>
				</c:if>
				<form class="form" id="loginForm" method="post">
					<input type="text" placeholder="Username" id="tel" name="tel"> 
					<input type="password" placeholder="Password" id="password" name="password">
					<button type="submit" id="login-button">Login</button>
				</form>
			</div>

			<ul class="bg-bubbles">
				<li>1</li>
				<li>2</li>
				<li>3</li>
				<li>4</li>
				<li>5</li>
				<li>6</li>
				<li>7</li>
				<li>8</li>
				<li>9</li>
				<li>0</li>
			</ul>
		</div>
	</div>
	<!-- jQuery And JBox-->
	<script src="static/js/jquery.min.js"></script>
	<script src="http://code.jquery.com/jquery-migrate-1.1.1.js"></script>
	<script src="static/js/jquery.jBox-2.3.min.js"></script>
	<script src="static/js/jquery.jBox-zh-CN.js"></script>
	<!-- Bootstrap Core JavaScript -->
	<script src="static/js/bootstrap.min.js"></script>
	<script src="static/js/metisMenu/metisMenu.min.js"></script>

	<script>
		$(function() {

			$("#loginBtn").click(function() {
				if (!$("#tel").val()) {
					$("#tel").focus();
					return;
				}
				if (!$("#password").val()) {
					$("#password").focus();
					return;
				}
				$("#loginForm").submit();
			});

		});
	</script>
	<script src="static/js/jquery.min.js" type="text/javascript"></script>
	<script>
		$('#login-button').click(function(event) {
			event.preventDefault();
			$('form').fadeOut(2000);
			$('.wrapper').addClass('form-success');
			 window.setTimeout(function () { $("#loginForm").submit(); }, 2000);
		});
	</script>

	<div
		style="text-align: center; margin: 50px 0; font: normal 14px/24px 'MicroSoft YaHei'; color: #000000">
		<h1>CRM客户关系管理系统</h1>
	</div>
</body>
</html>